package org.walkerljl.practice.exception;

/**
 * @author lijunlin
 */
public class ExceptionTest {

    public static void main(String[] args) {
        System.out.println(get());
    }

    public static String get() {
        String result = "";
        try {
            int i = 2 / 0;
            result = "success";
        } catch (Exception e) {
            System.out.println(e.getMessage());
            result = "failure";
            //int j = 10 / 0;
        }
        return result;
    }
}
